import { createAPI, createFormAPI } from '@/utils/request'

export const insertPigLivingSituation = data => createFormAPI('/admin/pigLivingSituation', 'post', data)
export const deletePigLivingSituation = data => createAPI(`/admin/pigLivingSituation/${data.id}`, 'delete', data)
export const updatePigLivingSituation = data => createAPI('/admin/pigLivingSituation', 'put', data)
export const selectPigLivingSituation = data => createAPI('/admin/pigLivingSituation', 'get', data)
export const pigLivingSituationNum=data =>createAPI('/admin/pigLivingSituationNum',"get",data)
